<link rel="stylesheet" type="text/css" href="../addons/jy_weishop/custom/templates/mobile/css/orderdetail.css?v=2.1.5">
<div class="order-list-page cav order_detail">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">订单详情</div>
	</div>
	<div class='fui-content'>
		<div class="fui-cell-group" style="margin-top:0">
				<div class="fui-cell">
					<div class="fui-cell-text">
						<div class="text" style="font-size:0.75rem"><i class="icon icon-shoucang"></i> {{pagedata.order.merch.merchname}} <i class="icon icon-more"></i></div>
					</div>
					<div class="fui-cell-remark noremark">
						<span class="r-icon" href="tel:{{pagedata.order.merch.tel || pagedata.order.merch.mobile}}">
								<i class="icon icon-phone" style="padding:0.3rem;font-size:0.7rem"></i>
						</span>
						<span class="r-icon" style="margin-left:0.6rem" ng-click="pagedata.openLocation(pagedata.order.merch);">
								<i class="icon icon-map" style="padding:0.3rem;font-size:0.7rem"></i>
						</span>
					</div>
				</div>
			</div>
			<div class="fui-cell-group" style="margin-top:0;padding-bottom:0.5rem">
				<div class="fui-cell-line"></div>
				<div ng-if="pagedata.order.status>0" class="bold c" style="margin-top:1.5rem;font-size:1.3rem">{{pagedata.order.ordersn}}</div>
				<div class="c" ng-click="pagedata.selfnumber_verify()">
						<i class="icon icon-qrcode" style="font-size:2rem;color:#ddd"></i>
				</div>
				<div ng-if="pagedata.order.status==0" class="bold c" style="margin-top:1.5rem;font-size:1rem">{{pagedata.order.statustitle}}</div>
				<div class="fui-icon-group noborder col-5 radius" style="padding:0 2.5rem">
					<a class="fui-icon-col external">
						<div ng-class="{'icon':1,'disabled':pagedata.order.status==0}"><i class="icon {{pagedata.pluginset.makesteep1 || 'icon-yuyue'}}" style="font-size:2rem;"></i></div>
						<div ng-class="{'text':1,'disabled':pagedata.order.status==0}">已下单</div>
					</a>
					<div class="fui-icon-col" style="margin-top:0">
						<div class="text fui-cell-line" style="margin:0;margin-top:3.38rem"></div>
					</div>
					<a class="fui-icon-col external">
						<div ng-class="{'icon':1,'disabled':pagedata.order.status<2}"><i class="icon {{pagedata.pluginset.makesteep2 || 'icon-map'}}" style="font-size:2rem;"></i></div>
						<div ng-class="{'text':1,'disabled':pagedata.order.status<2}">待兑换</div>
					</a>
					<div class="fui-icon-col" style="margin-top:0">
						<div class="text fui-cell-line" style="margin:0;margin-top:3.38rem"></div>
					</div>
					<a class="fui-icon-col external">
						<div ng-class="{'icon':1,'disabled':pagedata.order.status<3}"><i class="icon {{pagedata.pluginset.makesteep3 || 'icon-guanyanren'}}" style="font-size:2rem;"></i></div>
						<div ng-class="{'text':1,'disabled':pagedata.order.status<3}">已使用</div>
					</a>
				</div>
				<div class="fui-page-title c">
					<div class="subtitle">{{pagedata.order.statusdesc}}</div>
				</div>
			</div>
		<div class="weui_cells">
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>{{ifelse(pagedata.order.type==1,'景点','路线')}}</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.order.spot.title || pagedata.order.way.title}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>门票</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.order.ticket.title}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>联系人姓名</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.order.name}}</div>
			</div>	<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>联系电话</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.order.mobile}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>出发时间</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.order.go_time}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>地址</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.order.address}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>备注</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.order.remark}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>单价*数量</span>
					</div>
					<div class="weui_cell_ft">￥{{pagedata.order.price}}*{{pagedata.order.buynum}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>实际支付</span>
					</div>
					<div ng-if="pagedata.order.fee" class="weui_cell_ft">{{pagedata.order.fee}}元</div>
					<div ng-if="!pagedata.order.fee"  class="weui_cell_ft">待支付</div>
			</div>
		</div>
	</div>
	<div ng-if="pagedata.show_verify_ewm" ng-click="pagedata.show_verify_ewm=false;" class="mask" style="display:block">
			<div class="code_box">
				<p>请将二维码出示给店员</p>
				<div class="img_box" id="show_verify_ewm">
					
				</div>
				<div class="cav_code" id="show_verify_code">{{pagedata.order.ordersn}}</div>
				<div class="error">
					<p style="padding: 0 1.3rem">温馨提示：为了更好的保护您利益,请不要轻易将您的核销二维码泄露给他人</p>
				</div>
			</div>
		</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script type="text/javascript">
scope.pagedata.selfnumber_verify=function(){
			scope.tool.qr(scope.pagedata.selfnumberurl,'show_verify_ewm',150)
			scope.pagedata.show_verify_ewm=true;
}
</script>